import { throttle as _throttle } from 'lodash-es'

export function throttle(fn, timeout, context, ...params) {
  return _throttle(fn, timeout).bind(context, ...params)
}
